package cn.ligoo.part.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.ligoo.part.dao.LogInfoDao;
import cn.ligoo.part.domain.LogInfo;
import cn.ligoo.part.service.LogInfoService;

/**
 * @author Jin,QingHua
 * @version 2013-10-23 13:11:20
 */
@Service
public class LogInfoServiceImpl implements LogInfoService {

	@Resource
	private LogInfoDao logInfoDao;

	@Override
	public Long createLogInfo(LogInfo t) {
		this.logInfoDao.insertEntity(t);
		return t.getId(); // ע��MyBatis��insert��iBATIS��ͬ��
	}

	@Override
	public int modifyLogInfo(LogInfo t) {
		return this.logInfoDao.updateEntity(t);
	}

	@Override
	public int removeLogInfo(LogInfo t) {
		return this.logInfoDao.deleteEntity(t);
	}

	@Override
	public LogInfo getLogInfo(LogInfo t) {
		return this.logInfoDao.selectEntity(t);
	}

	@Override
	public Long getLogInfoCount(LogInfo t) {
		return this.logInfoDao.selectEntityCount(t);
	}

	@Override
	public List<LogInfo> getLogInfoList(LogInfo t) {
		return this.logInfoDao.selectEntityList(t);
	}

}
